/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class Calc {
    public int add(int a,int b){
        return a+b;
    }
    public int sub(int a,int b){
        return a*b;
    }
    public int jva(int a,int b){
        return a-b;
    }
    public int cod(int a,int b){
        return a/b;
    }
public static void main(String args[]){
         Calc atest = new Calc();
            int x=50,y=30;
            int r=atest.add(x,y);
            int w=atest.sub(x,y);
            int q=atest.jva(x,y);
            System.out.println(x+"+"+y+"="+r);
            System.out.println(x+"*"+y+"="+w);
            System.out.println(x+"-"+y+"="+q);
            System.out.println(x+"/"+y+"="+w);
}
}
